#include <iostream>
#include <iomanip>

using namespace std;

double celsius( double in ) {
    return 1.8 * in + 32;
}

double fahrenheit( double in ) {
    return (in - 32)/1.8;
}

int main() {
    cout << setw(12) << "Fahrenheit" << setw(8) << "Celsius" << endl;
    for (int i = 0; i<=100; ++i) {
        cout << setw(12) << i << setw(8) << fahrenheit(i) << endl;
    }
    cout << endl << setw(8) << "Celsius" << setw(12) << "Fahrenheit" <<  endl;
    for (int i = 32; i<=212; ++i) {
        cout << setw(8) << i << setw(12) << celsius(i) << endl;
    }

    return 0;
}

